#include "TranslateX.h"

TranslateX::TranslateX()
: Animation()
{
	mXAmount =0;
}
TranslateX::TranslateX(Model* pModel, float pXAmount)
: Animation(pModel){
	mXAmount = pXAmount;
}

float TranslateX::GetXAmount(){
	return mXAmount;
}
void TranslateX::SetXAmount(float pXAmount){
	mXAmount = pXAmount;
}

void TranslateX::Update(LPDIRECT3DDEVICE9 d3ddev, double pElapsedTime)const{
	mModel->GetPos()->x += mXAmount* (pElapsedTime/1000);
}
void TranslateX::Release()const{

}